package org.budo.support.spring.test.web.servlet.request.mock;

import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.setup.MockMvcBuilders;
import org.springframework.web.context.WebApplicationContext;

/**
 * @author limingwei
 */
public class Mock {
    public static MockRequest request() {
        return MockRequest.INSTANCE;
    }

    public static MockResult result() {
        return MockResult.INSTANCE;
    }

    public static MockMvc mvc(WebApplicationContext webApplicationContext) {
        return MockMvcBuilders.webAppContextSetup(webApplicationContext).build();
    }
}